<?php 
/**
 * 获取系统信息
 * @return array $sys_info 系统信息
 *
 */
function get_sysinfo() {
	$sys_info['zlib']           = function_exists('gzclose');//zlib
	$sys_info['safe_mode']      = (boolean) ini_get('safe_mode');//safe_mode = Off
	$sys_info['safe_mode_gid']  = (boolean) ini_get('safe_mode_gid');//safe_mode_gid = Off
	$sys_info['timezone']       = function_exists("date_default_timezone_get") ? date_default_timezone_get() : L('no_setting');
	$sys_info['socket']         = function_exists('fsockopen') ;
	$sys_info['web_server']     = $_SERVER['SERVER_SOFTWARE'];
	$sys_info['phpv']           = phpversion();
	$sys_info['fileupload']     = @ini_get('file_uploads') ? ini_get('upload_max_filesize') :'unknown';
	return $sys_info;
}
